package com.hui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hui.mapper.StoreOrderStatusMapper;
import com.hui.entity.dao.StoreOrderStatus;
import com.hui.service.StoreOrderStatusService;
import org.springframework.stereotype.Service;

/**
 * 订单操作记录表(StoreOrderStatus)表服务实现类
 *
 * @author hui
 * @since 2022-08-04 18:41:42
 */
@Service("storeOrderStatusService")
public class StoreOrderStatusServiceImpl extends ServiceImpl<StoreOrderStatusMapper, StoreOrderStatus> implements StoreOrderStatusService {
    /**
     * 操作订单记录
     *
     * @param oid
     * @param changetype
     * @param changeMessage
     */
    public void create(Long oid, String changetype, String changeMessage) {
        StoreOrderStatus storeOrderStatus = new StoreOrderStatus();
        storeOrderStatus.setOid(oid);
        storeOrderStatus.setChangeType(changetype);
        storeOrderStatus.setChangeMessage(changeMessage);
        ((StoreOrderStatusMapper) this.baseMapper).insert(storeOrderStatus);
    }

}

